import pytest
import brownie

# 在brownie中，a是accounts的简写


@pytest.fixture
def rewards(a):
    yield a[2]


# 管理员账户地址
@pytest.fixture
def gov(a):
    yield a[3]


# 代币地址
@pytest.fixture
def token(a, Token):
    # Must be ERC20
    yield a[0].deploy(Token)


# 控制器账户地址
@pytest.fixture
def controller(a):
    yield a[4]


# 测试环境中账户可以没有私钥，也可以转账，参见
# https://eth-brownie.readthedocs.io/en/stable/core-accounts.html#generating-adding-and-unlocking-accounts

# andre（ac本人）的地址
@pytest.fixture
def andre(accounts):
    return accounts.at("0x2D407dDb06311396fE14D4b49da5F0471447d45C", force=True)


# ychad 账户地址
@pytest.fixture
def ychad(accounts):
    return accounts.at("0xFEB4acf3df3cDEA7399794D0869ef76A6EfAff52", force=True)


# binance 地址
@pytest.fixture
def binance(accounts):
    return accounts.at("0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE", force=True)
